﻿using System;
using System.Collections.Generic; 
using System.Text;
using ATSModel;
using ATSIDAL;

namespace ATSBLL
{
   public class TPrintRecord: BaseService<TPrintRecordInfo>
    {

       private static readonly ITPrintRecord dal = DALFactory.DataAccess.CreateTPrintRecord();

       public override void SetCurrentRepository()
       {
           CurrentRepository = dal;
       }


       public IList<TPrintRecordInfo> GetPrintRecordbySN(string productSN)
       {
           return dal.GetPrintRecordbySN(productSN);
       }

       public IList<TPrintRecordInfo> GetPrintRecordbyDT(DateTime dtStart, DateTime dtEnd)
       {
           return dal.GetPrintRecordbyDT(dtStart, dtEnd);
       }

       public IList<TPrintRecordInfo> GetPrintRecordbyMO(string MO)
       {
           return dal.GetPrintRecordbyMO(MO);
       }
    }
}
